<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Admin Template</title>

<<<<<<< HEAD
    <link href="/movie/Movie_version_1.00/movie/Public/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/movie/Movie_version_1.00/movie/Public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="/movie/Movie_version_1.00/movie/Public/static/admin/css/layout.css" rel="stylesheet">
    <link href="/movie/Movie_version_1.00/movie/Public/static/admin/css/min.css" rel="stylesheet">
    <script src="/movie/Movie_version_1.00/movie/Public/static/jquery/jquery.min.js"></script>
=======
    <link href="/movie1/Public/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/movie1/Public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="/movie1/Public/static/admin/css/layout.css" rel="stylesheet">
    <link href="/movie1/Public/static/admin/css/min.css" rel="stylesheet">
    <script src="/movie1/Public/static/jquery/jquery.min.js"></script>
>>>>>>> 2583b002bdd9e079cb754cdfea42eda8b9e40712

</head>
<body>

<!-- .row必须包含在 .container(固定宽度)或 .container-fluid(100% 宽度)中，以便为其赋予合适的排列(aligment)和内补(padding)-->
<nav class="layout-header">
    <div class="container layout-width">
        <div class="row">
            <div class="col-md-12">

                <div class="pull-left">
                    <a href="" class="logo">
                        <span class="fa fa-desktop"></span> 管理员后台
                    </a>
                </div>

                <div class="top-menu pull-left">
                    <ul>
                        <li>
                            <a href="<?php echo U('Index/index');?>">首页</a>
                        </li>
                        <li>
                            <a class="" href="">影院管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Cinema/index');?>">影院列表</a>
                                <a href="<?php echo U('Cinema/create');?>">添加影院</a>
                            </div>
                        </li>
                        <li><a class="" href="">电影管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Movie/index');?>">电影列表</a>
                                <a href="<?php echo U('Movie/create');?>">添加电影</a>
                            </div>
                        </li>
<<<<<<< HEAD
=======
                        <li><a class="" href="">广告管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Movie/index');?>">广告列表</a>
                                <a href="<?php echo U('Movie/create');?>">添加广告</a>
                            </div>
                        </li>
>>>>>>> 2583b002bdd9e079cb754cdfea42eda8b9e40712
                    </ul>
                </div>

                <div class="pull-right">
                <span class="account-info">
                    <span>欢迎:<?php echo \Admin\Model\Admin::user()['username']; ?></span>
                    <a class="text-muted">
                        <span class="glyphicon glyphicon-user"><span
                                class="icon-circle my-red-dot"></span></span>
                    </a>
                    <a class="login-out" href="<?php echo U('Default/loginout');?>">退出</a>
                </span>

                </div>

            </div>
        </div>
    </div>
</nav>

<section class="container layout-main layout-width">
    <div class="row">
        <div class="col-md-12 display-table">

            <!--左菜单区域-->

            <!-- 左菜单区域结束-->

            <!--右内容区域-->
            
            <div class="layout-content">

                <div class="page-title">影院管理</div>

                <div class="content-top">
                    <ul class="top-nav">
                        <li class="active"><span>添加影院</span></li>
                    </ul>
                    <div class="clearfix"></div>
                </div>
                <!--content-main start-->
                <div class="container-fluid content-main">
                    <div class="row">
                        <div class="col-md-12">

                            <div id="tsk" class="ui-tips bg-info" style="display:none">
                                <span class="icon glyphicon glyphicon-info-sign"></span> <span  id="ts">提示信息提示信息提示信息提示信息提示信息提示信息。</span>
                            </div>

                            <form class="col-md-offset-3 form-horizontal" onsubmit="return false">

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">用户名</label>
                                    <div class="col-sm-5">
                                        <input type="text" id="name" class="form-control">
                                        <span class="help-block"></span>
                                    </div>
                                </div>

                                    <div class="form-group">
                                    <label class="col-sm-2 control-label">密码</label>
                                    <div class="col-sm-5">
                                        <input type="password" id="pwd" class="form-control">
                                        <span class="help-block"></span>
                                    </div>
                                    </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">影院名称</label>
                                    <div class="col-sm-5">
                                        <input type="text" id="cinema" class="form-control">
                                        <span class="help-block"></span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">地址</label>
                                    <div class="col-sm-5">
                                        <input type="text" id="address" class="form-control">
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-8">
                                        <button onclick="func()" style="margin-left: 90px;width: 150px" type="submit" class="btn btn-default">保存</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <!--content-main end-->
            </div>
            <script>
                      function func(){
                          var name=$('#name').val();
                          var pwd=$('#pwd').val();
                          var cinema=$('#cinema').val();
                          var address=$('#address').val();
                          $.ajax({
                              type:'post',
                              url:"<?php echo U('Cinema/create');?>",
                              data:{'name':name,'pwd':pwd,'cinema':cinema,'address':address},
                              datatype:'json',
                             success:function(data){
                                       $('#tsk').css('display','block');
                                       $('#ts').html(data);
                              }
                          })
                      }
            </script>

            <!--右内容区域结束-->

            <div class="clearfix"></div>
        </div>
    </div>
</section>

<footer class="layout-footer">
    <div style="margin-top:30px" class="container layout-width">
        <div class="row">
            <div class="col-md-12">
                <ul class="links">
                    <li><a href="" target="_blank">关于我们</a></li>
                    <li><a href="" target="_blank">服务协议</a></li>
                    <li><a href="" target="_blank">运营规范</a></li>
                    <li><a href="" target="_blank">客服中心</a></li>
                    <li><a href="" target="_blank">在线客服</a></li>
                    <li><p class="copyright">Copyright.All Rights Reserved.</p></li>
                </ul>
            </div>
        </div>
    </div>
</footer>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<<<<<<< HEAD
<script src="/movie/Movie_version_1.00/movie/Public/static/ie8/html5shiv.min.js"></script>
<script src="/movie/Movie_version_1.00/movie/Public/static/ie8/respond.min.js"></script>
=======
<script src="/movie1/Public/static/ie8/html5shiv.min.js"></script>
<script src="/movie1/Public/static/ie8/respond.min.js"></script>
>>>>>>> 2583b002bdd9e079cb754cdfea42eda8b9e40712
<![endif]-->

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<<<<<<< HEAD
<script src="/movie/Movie_version_1.00/movie/Public/static/bootstrap/js/bootstrap.min.js"></script>
=======
<script src="/movie1/Public/static/bootstrap/js/bootstrap.min.js"></script>
>>>>>>> 2583b002bdd9e079cb754cdfea42eda8b9e40712

</body>
</html>